package com.jfcloud.common.aspect;

import javax.servlet.http.HttpServletRequest;

import lombok.Data;

@Data
public class TokenUser {

	private Long userId;
	
	private String userName;
	
	public static TokenUser load(HttpServletRequest request) {
		TokenUser tokenUser = (TokenUser) request.getAttribute("tokenUser");
		return tokenUser;
	}
}
